package com.lx.zxs.service.impl;

import com.lx.zxs.entity.Contacts;
import com.lx.zxs.mapper.ContactsMapper;
import com.lx.zxs.service.ContactsService;
import org.apache.poi.util.StringUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ContactsServiceImpl implements ContactsService {
    @Autowired
    private ContactsMapper contactsMapper;

    @Override
    public List<Contacts> getContactsByParms(String keyWords, Integer id) {


        return contactsMapper.queryContactsByParms(keyWords,id);
    }

    @Override
    public int insertConcats(Contacts contacts) {


        return this.contactsMapper.insertContics(contacts);
    }

    @Override
    public int updateConcats(Contacts contacts) {
        return this.contactsMapper.updateContics(contacts);
    }

    @Override
    public int delContacts(int id) {


        return this.contactsMapper.delContacts(id);
    }
}
